<template>
	<view class="protocolRules">
		<view class="item" v-for="(item,i) in linkList" @click="onSkip(`/package/mine/agreement?pageType=${item}`)">
			<view class="tips">{{item}}</view>
			<uni-icons type="forward" size="18" color="#999999"></uni-icons>
		</view>
	</view>
</template>

<script>
	import {
		getConfigJson
	} from "api/appapi.js"
	export default {
		data() {
			return {
				linkList: [
					'平台用户协议', '隐私政策', '注销重要提醒'
				],
				isAudit: false,
			};
		},
		onLoad() {
			const appConfig = getAppConfigSync()
			//this.isAudit = appConfig.isAudit;

			if (!this.isAudit) {
				this.linkList = [
					'平台用户协议', '隐私政策', '平台规则', '商户入驻申请协议', '注销重要提醒'
				]
			} else {
				this.linkList = [
					'平台用户协议', '隐私政策', '注销重要提醒'
				]
			}
		}
	}
</script>

<style lang="less">
	.protocolRules {
		.item {
			padding: 40upx;
			box-sizing: border-box;
			background-color: #fff;
			border-bottom: 1px solid #F3F3F3;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.tips {
				font-size: 32upx;
			}
		}
	}
</style>